avoid a potential crash if the window was never loaded/activated