[DF-606] Fix crash when model editor closes if any object was selected