[ticket/12207] Forum broken when error thrown

Fix display of forum when error is outputted before <html> tag.

PHPBB3-12207
Merge remote-tracking branch 'Zoddo/ticket/12207' into develop

* Zoddo/ticket/12207:
  [ticket/12207] Forum broken when error thrown