Consider that it's not so unusual for a contractual applicant (eg a new hire) to hand over their ID to a trusted person so they can make a photocopy for their records. It would be easy to arrange a deliberate switcheroo or other unauthorized modification. But good luck, as the holder of a card, trying to explain to the anti-terrorist squad why your ID card is screaming a warning to them after a police officer scans your ID after falling for some pretext (a 'noise complaint from a neighbor', for example).
Obviously, this is more likely to be the stuff of professional espionage rather than casual trollery - but my point is that it would be relatively easy to implement, while positively Kakfaesque for the victim, thanks to bureau- and securocratic faith in technology. The first time I applied for a driving license in the US (as a recent arrival from Europe) I was astonished to learn that there was an arrest warrant out for me - or more accurately, someone with my name and birthdate - in Georgia, and it took me several minutes to convince the DMV person that I had only arrived in the USA 72 hours previously.
There used to be a similar problem in the old days, the police test for explosive also showed positive if you had handled playing cards. So there had to be corroborating evidence - being Irish.