Drop type hints from signatures of of RepoLinker::getEntityUrl and EntityHandler::getTitleForId

A more proper fix for this is <https://gerrit.wikimedia.org/r/#/c/161486/>, but
this is a smaller workaround.

Change-Id: Ic71064e08cf46f943df6b8beb928ed783d036e0b