(#157) - .then(null, -> .catch(

should fix pouchdb/pouchdb#2163