Fix RateEstimator

Bugfix for sample_size == 0