COUCHDB-2189 - fix for polling bug