[header] make `main_header` more bootstrap compilant (related to #3597030) [applied]