Fixed crasher in wikitext escaping / link handler interaction.

Change-Id: Ic61688223d52016072382122835fadcab2d03b08