Check whether read stream is empty before calling `stream_select()`

Fixes "stream_select(): No stream arrays were passed in" warning
Merge pull request #1 from theodorejb/fix-stream_select-warning

Check whether read stream is empty before calling stream_select() (Thanks to @theodorejb)