Handle Empty slice aggregation.

Closes #326
Merge pull request #339 from ChrisBeaumont/326

Fix empty slice aggregation