Added NULL check to prevent a crash on close when a bot was in game.
Although the crash involving removebots
was fixed, the method used caused an unintended crash when closing the game (such as alt+f4). Adding a small check allows the game to close normally.