Backport fix for Wikibase Client edit link

Change-Id: I9edf787e92e9173452c5564834ab4d8cfe704b81