MDL-29830 theme_base: Fix overflow problems with navigation items