Update Wikidata, fix JS issues when editing statements

See I0f39f750 for original patch to Wikibase

Change-Id: I77cd07ab9c2e5017f2398508625cf459b3197049