Prevent runaway search results

Closes https://github.com/sferik/t/issues/181.