[TS-2822] Adding check for zero length reads