FS-28: Fixed a problem in the VirtualInputStream where it would stop reading with read(byte[]) while there were still bytes to read.