crush: ensure bucket id is valid before indexing buckets array