Statsd: avoid doing a division by zero when calculating the average

if there was no value in the interval, lc->num == 0, and by that we would return the result of a division by zero
->
gdb> print average
$18 = -nan(0x8000000000000)