[ticket/12432] Correcting the assertion

PHPBB3-12432