Fixed issue with editor crashing it spritesheet is closed while an item is selected.