Fix #4023: MenuSection object is out of sync with current Brackets Menus

A fix for #4023 by re-synchronizing the menu sections with the current menus state.