NettyTransport: check if the sender is null in handshakeFailed.