Checking for a window before we try to refer to it (see e-mail by Eero Pajarre dated...