fixed issue with calculation of mWater leading to division by zero in PartialDynamicHeaterWithLosses