[SHRINKWRAP-461] Fix for SeekableInMemoryByteChannel incorrectly returning 0 rather than -1 when it reaches the end of stream.