Fix NRE when disposing GL texture about to be created

The internal (OpenGL) texture can be null if the main thread callback hasn't been called yet and the game somehow disposes the texture right away.