Navbar items break if the menu depth is set to exclude children

Navbar items with children broke if the menu depth excluded the children.
Such as: `wp_nav_menu(array('depth' => 1));` where 2nd level children exist