bug fix, making prediction iterator wait until an example is submitted before it tries to read from the stream