BUG-15076 Edit StageMap Window dosen`t close.

The Edit StageMap wondow dosen`t close because the menu_edit variable was undefined. So, I added a validation to control this issue.