Fix potential crash when failed game load occurs