prevent a crash if no sdl context was created.