(pouchdb/pouchdb#1730) - try/catch for eval

Falls back to a regex parser for map functions
if the eval() fails with an EvalError.