[UDP] Fix NRE disconnecting while receiving messages