I hadn't considered that...but it's a valid concern
I would put my ID in a pocket that zips shut. I'd think they'd have to do a pretty halfassed job to not check pockets first, at least. I've heard of people writing their names on their arm if they think they may be hard to identify after death. I don't think it'll be necessary, but I'm sure there's no harm in it if you're really worried about it