[ticket/11707] Twig DEFINE not working as expected

PHPBB3-11707
Merge remote-tracking branch 'EXreaction/ticket/11707' into develop

* EXreaction/ticket/11707:
  [ticket/11707] Twig DEFINE not working as expected