Fixed #21446 – Made set_language return 204 status code for AJAX requests.

The redirect is still performed if the “next” parameter is present.