Don't pass the hash when routing an empty search query

Fixes #793