internal/v4: fix search error handling
Merge pull request #194 from rogpeppe/082-fix-search-errors

internal/v4: fix search error handling

We use the new HandleJSON API which doesn't give a ResponseWriter
to use.