Fix for BZ- 1087230 - Modal for editing content of Tree Menu panel not closed, when save button pressed.
(cherry-picked from bfc701f)