Preventing "scope request" exception when using the twig extension through command line