catch division-by-zero when calculating ts-deviation