Fix bug on getName method in Twig Extension