Handle empty packets in recv