Issue #1001. Failed replications calls complete callbacks correctly

Callback is executed correctly if it is passed in options object.