Fixed 'uiSettings not defined' bug on switch language
STR:
- login to admin ui
- switch language
AR:
- "uiSettings not defined error in index.html.js"
ER:
- should work just fine
Solution:
- in the complicated, multiple "if" code, respected laziness of calculation of everything, added a check before the line expecting uiSettings and retrieve it.