miscellaneous replicator fixes

backport from
https://github.com/rcouch/couchdb-couch-replicator/commit/f76353874d5c0f86f99f17ea87c2e010278c1eae

- monitor clients and make sure to remove the worker from the pool when
  needed
- prevent unexpected retry
- handle the case where the doc is missing