Fix warnings when searching
Redirect to a random project if trying to search the entire site.