[ticket/12141] Fix invalid assert that causes travis to fail on php 5.5

PHPBB3-12141