fix crash on udp client send, when no udp client