[feature/twig] Only set extensions if extension manager is loaded

PHPBB3-11598
[feature/twig] Fix controller/helper_url_test (missing globals)

PHPBB3-11598