Revert "change default locale from undefined to "", refs #16663"

This reverts commit ed845d2be5d0fd5f1c741cbcba5ab25937b4a01b.
make i18n handle case when dojo.locale is undefined