This tests that performing a load during document teardown does not cause a crash. Bug #38797