Fixed correct removing of LayerObject from LayerContainer.