fix issue: LogicException occurr with Twig 1.12.0
Merge pull request #18 from satooshi/pullrequest

fix issue: LogicException occurr with Twig 1.12.0