(bug 27201) fix duplicate IDs in recursive whatlinkshere output