Don't fail if jinja2 isn't present and JINJA2_GET_ENVIRONMENT() is called

This can happen when evaluating settings in the default 500 page
for instance.