bug923258 - Fix crash when changing the language

https://bugzilla.mozilla.org/show_bug.cgi?id=923258