Change safeSum to return nulls when all datapoints are null

Refs #32
Merge remote-tracking branch 'upstream/master'