Use async call to detect user language in Tabzilla, Bug 1018724

Solved 2 issues in `detectUserLang`.