I am a Canine handler and most of the time, the canine is trained that when the door "pops" open the canine is to go to the handler's side unless the handler is; fight, chasing, or some other active the canine WILL attack. This is how the down is been trained. Its has been said that the dog was not giving a verbal command, however canines are trained on non-verbal commands, as in a hand command, and the door popper. so yes the canine did right. THE DOG DID NOT THING WRONG. Now the handler well he should move the door poper button so that he does not hit anymore.
"I would Know"
ubi dubium ibi libertas
Translation
"where [there is] doubt, there [is] freedom"
Did the dog do right?