stream/network: don't clobber buffer byte counts on error