Fix for handling nullpointerexception when minimizing the game