fix locale and dojo/i18n issues on node, fixes #16663

- avoid exception in dojo/_base/config when navigator isn't defined
- make dojo/i18n handle case when dojo.locale is undefined