Do not remove link tag when adding another

Fixes Bug 702160, Bug 702239.
Fix internal links merging with other links