Fix invalid read on empty string queries.
Fix bad free when encountering an error fetching query results.
Lower log level for missing revision-number in client update request.  This is some clients' normal behavior, so we shouldn't need to need to see a message about it in the error log.