[html-clean-resources] Do not dicard links to self

Probably due to changes in the uri-utils functions, the HTML cleanup
tasks removed any links to anchors in the same file. This is now fixed.