Bug 55124: link harvesting bugs

- move link handling to a helper function
- dont add claim for value which didnt match wikilink regexp
- fix NoPage/exists check
- add check to prevent linking an item to itself

Change-Id: I049c13d2ca1c54e304d31cf00ae608a07e2235f1
Merge "Bug 55124: link harvesting bugs"