Fixed call in pouchdb_sync that caused us to crash