Fix setDynamicBucketMode so that it does not fail on guests with no heatmap