minor fix: don't compute cdf for empty histogram