Editor: fix custom entity editor dialog not opening if invalid sprite.