Fix null host value in layout.html.twig