Fix bug where a value of 0 (zero) would cause the aggregate value to be skipped and thus calculated incorrectly.