[feature/twig] Add check for defined IN_PHPBB in all new Twig related files

PHPBB3-11598