Fixes #4637: fixed broken Twig method calls