Entity editor will no longer crash if a sprite or sprite state that is in use is removed in the sprite editor