Bug 887967 - avoid using a null nsIDOMWindowUtils when checking if a window is hidden.  r=adw, a=gavin