Fix crash if report data source is an empty collection and sum() is used