Fix bug that corrupts the menu after deleting menus

Merged phareous requested to merge mlong/xtrnmenucfg into master

Merge request reports