Do not rely on dropdowns to create the menu

Renders the top menu correctly even if there are no dropdown menus, that is,
if the user wants to use a flat top menu.