Fixes a TemplateDoesNotExist error that should be an ImproperlyConfigured

See https://code.djangoproject.com/ticket/16502

By @ianawilson, @jambonrose