Fix wrapping of MutationObserver