fixed issue where ogs-gui would crash if the object selected in the pipeline was removed