Sometimes, when you retry a level during the level finished replay, you get the message "Game replay is done" instead of actually replaying the level.
It's easiest to recreate this bug on a custom level with the player start just above the exit.
Keep rapidly pressing restart. When your timing is right, seems to be when you just finish a level, you'll get the bug.
Notice that the Time can increases from .12s to a whole second !
Good luck debugging .