fix issue: LogicException occurr with Twig 1.12.0

Bug fix: yes
Feature addition: no
Backwards compatibility break: no

see https://github.com/fabpot/Twig/issues/962
LogicException: Unable to register extension "sandbox" as extensions have already been initialized.