OOH wait did you have the "plan ahead' upgrade? It gives you a free random upgrade next run.
Pretty sure not. And also, the FIRST time I go into an upgrade shop in the glitched run I have no upgrades. Also the glitch happens randomly so one second I'm shooting normal bullets and then suddenly it's HUGE Boy bullets for like 3 seconds.