Fixed a crash when changing mode to a game mode with no teams