Casting to game instance always fails when packaging the game

It is still an issue in UE5 Early Access. This fixed it.