add workaround for MutationObserver/MutationRecord and Firefox issues