Correctly handle React stream errors.