Use next(err) for express

In Express, pass any error to next() so that error-handling middleware
can catch it.
Handle filterObject() errors gracefully

Return 400 on an error in filterObject()