Made the IMD blocker not read past the end of the stream.