Found this bug quite by acident. Haven't tested it in Story Mode.
Steps:
1. Win current round.
2. If you're damaged, like missing a leg, exit to main menu.
3. Click on Endless Mode.
You start in the upgrade room with an upgrade pending, fully repaired, in the next round.