Test for a crash when deactivating a document that had adopted a
element. The test passed if it did not crash.