Add a cb_avg_time > 0 check to deal with low-rate simulated time, that
can make that several messages arrive with the same time and so lead to
a zero median.