internal/v4: fix search error handling

We use the new HandleJSON API which doesn't give a ResponseWriter
to use.
I would argue that its better to return the result without the bit of metadata than to skip the result entirely. There are plenty of occasions where we don't include the metadata if it doesn't exist.