I mean, how is what he did not a needless act of disrespect? Guns are nothing to him, but are a cop's only weapon and means of self defense.
The millions of ways he had of getting out of there, and he smacks her around and takes her gun before disappearing. If Gotham PD had come down on him like a ton of bricks, I would have cheered.