Bug 1020803 - make test only wait for popuphidden if the popup isn't already closed, rs=firebot,test-only