[ticket/11943] Throw an exception if DEFINE is setup improperly

PHPBB3-11943