Ensure aggregations are not nil
Merge pull request #156 from cndreisbach/fix-for-nil-aggregations

Ensure aggregations are not nil