Fix for reading from NetworkStream

When less bytes could be read than requested, the returned buffer was filled up with 0 and this led to CRC errors.

Please consider merging recent fixes.