polling-jsonp: prevent spurious errors from being emitted when the window is unloaded