Handle the case where there are no class examples for a particular class and balance_classes = true.