Change safeSum to return nulls when all datapoints are null

Refs #32