Fixed #17906 - {% cycle %} and {% firstof %} templatetags in future with auto-escaping

https://code.djangoproject.com/ticket/17906