Fix NullReferenceException in AggregationsHelper
when bucket is not available in aggregations.
Merge pull request #1049 from mausch/develop

Fix NullReferenceException in AggregationsHelper