Fix reading from a closed stream when UV__POLLHUP is set.