Fix replicator db changes loop crash after _security update
Fix replicator db changes loop crash after _security update

The changes feed loop on the replicator database would crash
if this database's _security object was updated.

Closes COUCHDB-1353.

apache/couchdb-futon,apache/couchdb-futon