Fixing a condition leading to setLoop in construct

Ensure $loop is an instance of StreamSelectLoop or LibEventLoop, not just StreamSelectLoop twice.