Restructured control flow a little.

Since couch_ogr2ogr_httpd is encapsulated in try-catch-after anyway, I can just
throw the error message at the end.
Be more stringent about the resulting feature collection.

That is, there should be at least one feature in it and the geometry has to be
non-null.