Return if the stream is nonblocking

If the stream is nonblocking we actually get this invalid packet and
should just stop.

@noplay you introduced the new behaviour. I think we need to stop the stream if we got such an packet. What do you think? This could have also caused the problem you had with your tests?