Fix NullReferenceException in AggregationsHelper

when bucket is not available in aggregations.

Fixes https://github.com/elasticsearch/elasticsearch-net/issues/1048