Yes, that scene is, actually, exactly what I mean.
If he weren't being used seriously that scene wouldn't have worked, at all.
Or do you think yelling at a dog (or child, or any other entity that can't properly understand why what it did was wrong) because it made a mistake in an earnest attempt to help, is a form of humour?