Change in finalizeTransaction: check if item balance is exactly 1