Fix Couchdb response metadata handling