Fixed crash on some libretro cores when calling deinit() or unload_game() when not inited or loaded