made Mojo::IOLoop::Stream code a little more defensive