Fix for #18526

This trivial change fixes #18526: {% with %} template tag shows strange behaviour if TEMPLATE_STRING_IF_INVALID is non-empty.

https://code.djangoproject.com/ticket/18526