Update Phast_Twig_Extension.class.php

Fix bug with custom twig function