Fix #443: Close/Open tabs while instance of new game tab is open.

fixes #443.

It now checks for if the game is null, which is the case if you are creating a game initially in a new game tab.

If this is not merged in by tomorrow, make sure to close any instances of a new game tab before clicking anything else.