Ensure that exception is thrown when polling invalid sockets.

Follow up to https://github.com/zeromq/jzmq/issues/349