Aggregates a Node.js stream and calls a callback with result or first error.