Links must be cleared on TextBlock#replace

This resulted in the recently noted regressions in #255 creating too
many notes when clicking.

[changelog]