Fixes for editing parented entities in the SceneStructureWindow. Fix crash when closing a SceneStructureWindow where parented entities have been copypasted.