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.
Merge pull request #2428 from Jennydmz/master

BUG-15076 Edit StageMap Window dosen`t close.