Fix deprecated render twig function