Once the cop sees that the gun is unloaded, what difference does it make what this guy's name is?
The cop knows that the guy doesn't have to show ID., so why does he bother to ask for it?
On the other hand, walking down the street with a gun in full view is just asking for trouble.