Fixing a condition leading to setLoop in construct

Ensure $loop is an instance of StreamSelectLoop or LibEventLoop, not just StreamSelectLoop twice.
Merge pull request #4 from knigitz/patch-1

Fixing a condition leading to setLoop in construct