Fixed handling custom menus with custom post types, links, and other custom menu items