[ticket/12613] Removed unnecessary checks

PHPBB3 12613