Defend against various internal errors with object notation These changes simply allow us to bail out of the whole method when an inappropriate input is detected. Otherwise, the functions might cause errors like `Cannot call method 'hasOwnProperty' of undefined`. The above case can happen when, for example, there's a syntax error in a locale .json file.
Defend against various internal errors with object notation
These changes simply allow us to bail out of the whole method when an inappropriate input is detected. Otherwise, the functions might cause errors like `Cannot call method 'hasOwnProperty' of undefined`.
The above case can happen when, for example, there's a syntax error in a locale .json file.

edimoldovan/i18n-node,Jeff-Tian/i18n-node,teambition/i18n-node,mrazvan92/i18n-node,teambition/i18n-node,travnels/i18n-node,gratex/i18n-node,mashpie/i18n-node,oliversalzburg/i18n-node