[Editor] Fixed crashing whne creating map with the mouse in the view.