Fixed two race conditions in BaseGameActivity causing a crash when the BaseGameActivity is finishing during a resume.