Addresses cause of NaN anomaly scores - issue #885

See #885