Fixed #21446 – Allowed not performing redirect in set_language view.

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