Fix crash if a window with a confirm dialog goes away.