Fix harmonic_mean behaviour when all values are 0 OR 0.0

I was getting bad arithmetic expression occasionally when sumInv ended up as 0.0, but sumInv=0 wasn't catching it.