Fix a NPE when LANG is not defined (typically on Windows)

If LANG is not defined, we end up with trying to add "null" in a hashtable, which is not allowed, throwing a NPE.

The default "en_US.UTF-8" should be an option, but we have no access to SettingProvider here, and I've decided to keep it as a simple bug fix.