Fix: StreamSubscription.cancel() throws an exception on some streams generated by `EventEmiiter` class (e.g. Window.onClose)