UI language reset after account creation

The user-selected language of the UI apparently gets reset to the site default after the user has created an account.

I'm not sure if configuration could have an effect, but in addition to my local testing environment it also happens to me at least on http://demo.ckan.org.