[ticket/12936] Add asserts for html and status code

PHPBB3-12936