Bug 1092388 - Check the entry window before using it. r=bz, a=2.0+