backporting fix for mw.user.isAnon() JS error in wikibase

Change-Id: I73699ed1bf8fa072627844a691694e157f9f3f49