[ticket/12831] Allow events in page_header functions to prevent the setting of HTTP headers

https://tracker.phpbb.com/browse/PHPBB3-12831
A popup/ajax_request is the only place where I can imagine that and there is normally no page_header() call.