udp: fix send so it accepts buffers with length 0
test: add test for sending empty buffers with udp.send