Do not attempt to add a NULL stream to the event loop.

The getResource() method can return NULL instead of a valid socket
stream when stream_socket_client() fails to create the underlying
socket resouce.