Remove use of 2 deprecated js methods

site.getGlobalSiteId()
and
wikibase.getSiteByGlobalId()

Change-Id: I709c91169cc98a1d683982cdbf4649447c12c422