Catch all errors in MutationObserver callback