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

Let's add a `typeof` check to make sure `callback` is a function, just for good measure.