While this doesn't fix the problem, just keep the pre-upgrade boarding pass as a snapshot and use that to pass security.
Yes, that's a good suggestion when the upgrade happens post original check-in. Today I got upgraded before I checked in so I don't have an original BP.