Make UdpStream block until the next non-empty msg.

Closes #18111

Note that the non-empty part doesn't matter right now because of #18129.