I'm not a lawyer, so this is just a guess, but maybe if there aren't any scenes where he draws or shoots a weapon, he doesn't actually handle the firearms on set. Someone puts the gun into his holster, he acts out his scene, then the other person takes it out of the holster.
When he's shooting movies overseas, the law doesn't matter anymore.
And maybe the firearms used on set are blank shooters, starter pistols.