LinkHandler: Clone tokens before modifying them.

* One more instance where cloning was required.
* Add missing check for non-empty stack.
* No change in parser test results.
* Fixes crashers in several pages found in RT testing.

Change-Id: I8f0e422ec4bbc04db6654c2accc92a49fa0b8c8a