Prefer title for prefix search match

If a page has both a title and a redirect match then return the title instead
of the redirect.

Bug: 63627
Change-Id: I078c4767024cd584ab28ec2e1f4dde3e26d774f0