Numerically robust computation of model_cost_change. Change-Id: I421df17bab3bfdf782d95285cf352ed37675d835