Fix condition where menu properties were lost

When making a change to a submenu but not to a main menu, properties
(widgets, backgrounds, custom properties) were overwritten.
Fix group names when building menus

Thanks sualfred