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

http://tracker.phpbb.com/browse/PHPBB3-12141