[feature/twig] Revert some debug code

PHPBB3-11598