fix conditions that lead to NaN and persisted NaN corruption of values
Merge pull request #87 from stewartoallen/at-pull-fix-sum-nan

fix conditions that lead to NaN and persisted NaN corruption of values