Fix crash if you start recording a replay and immediately close the game

In contrast, I don't know why would someone close the game right when they start recording a replay.

Merge request reports

Loading