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

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