A dog can not be infected with hiv. Period. So even if he was to bite an infected person then bite another person the dog can not pass something they are unable to get
The only way HIV is transmitted is by humans not insects or other animals.
Also it means that is no chance to get it, when a dog bites almost in same time the infectected peron a then another person.