Bug 43429: Another fix to link trail handling

Check if the content of a link still ends on the link trail before stripping
the old link trail off / reusing it.

No changes in parserTests.

Change-Id: I6c47d05dd49bd04ddfa3ab527b3883fd567d33be
Merge "Bug 43429: Another fix to link trail handling"