Bug 967021: Check that a window listener is not null in marionette; r=mdas