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
(cherry picked from commit 4da200bc179883fec91f379c6b1ae422482f92eb)