QDoc: Skip already-resolved links and clear broken link hrefs
The link resolver now checks whether a link has already been resolved
before attempting node lookup. Pre-resolved links pass through
unchanged, which enables content built outside the resolver — such as
exception member links in thread safety admonitions — to coexist with
unresolved topic links in the same content block list.
Broken links now have their href cleared after the warning is emitted.
This ensures templates fall back to rendering plain text rather than
producing anchor tags with unresolvable targets. The legacy generators
exhibited the same fallback behavior when topic lookups failed during
extraction.
Fixes: QTBUG-145738
Change-Id: I44342a2c64d57eeaa3af4db3fe59a37855b58cd3
Reviewed-by: Topi Reinio <topi.reinio@qt.io>