Fix compatibility with new django-jinja versions.