Fix possible crash when clicking link after activity closed.

The link click event comes asynchronously from the WebView, and may be
caught after the activity is closed.

Change-Id: Iee75038f673d4512dafcbb6a0d191b1a192440ff