[basetemplates] Fix the main template global header/nav bar (closes #4881614) [applied]