Handle errors from filterObject() and use next(err) for express