Detect invalid file handles when passed to SelectIdleQueue
Prior to the fix, this manifests as the following log file:
(W) nbxmpp.transports_nb calling send on empty buffer and queue
Prior to the fix, this manifests as the following log file:
(W) nbxmpp.transports_nb calling send on empty buffer and queue