FIXED crash on `browser.destroy` for EventSource (#807)

Changes v1..v2:
  * more simple state
  * hijack `emit` instead of using `new/removeListener` API
It shouldn't to happen in the queue. We just need to bump the event queue to give control to `wait()`, so we enqueue a noop. We should execute real handler before the queue is bumped.