Fix couchdb error: '_revisions.start isn't an integer.'.