Fix leak of unpersisted/invalid line items in order