Fix redering of wikipedia links when there are duplicate wikibase-entity

Closes #24