Update the search index for linked pages.

Also don't blow up if someone redirects to a page that doesn't exist.

Change-Id: Icbf35f5443796085b688996b07703234c9116a0b