Fixed problem where if the main menu didn't have any menu items in it, creating a new page would not add a new menu item.