(pouchdb/pouchdb#2545) - use bulk doc error if available