Can you find ANY evidence of this loophole holding up in court? You seem really sure but a quick google suggests that it's just as unrealistic and urban legendy as it sounds.
Prostitution is illegal in California. Filming porn is legal. Are you aware of police arresting porn stars for prostitution while on camera?