Fix NullReferenceException in AggregationsHelper
when bucket is not available in aggregations.