Fix handling Twig_Error when loading template