Update Wikibase

- fix for bug 51347 and bug 51376, needed in wikibase repo (wmf10) only

Change-Id: I309d9bc23a6c34046eef596099642b952937f889