change break to continue in BalancerCostAnalyzer to skip calculating cost when it's not necessary