Fixing when `cleanup()` is called from a `DOMNodeRemoved` event