window: Prevent accidental crashing of the fontdlg when nothing's selected