in several cases, bucket_type is None, which leads `self._get_bucket_type` to throw: `AttributeError: 'NoneType' object has no attribute 'is_default'`

Should the `_get_bucket_type()` method check for None and return a default bucket type?