This tests that we don't crash when mutating the dom during an extractContents call.