Test that removing a media element from the tree while loading does not crash.