[ticket/11454] Check if the fields are set

PHPBB3-11454