Add a guard to break if no connection
Add a guard to break if no connection

If the WebSocket connection is already disconnected we don't have to
wait for messages

Change-Id: I7543c8e61711f036140db20416a57447da6c4c18
Closes-Bug: #1793264

openstack/python-tripleoclient