Fix PR43209: Do not decrease the cost of an IV candidate when the cost is infinite.