Prevent double query submission 2nd attempt to fix COUCHDB-2378