Adding check to ensure that LimitStream does not return false from eof() when the underlying stream is exhausted