Fix bug in (redundant) check for transaction result immediately before resubmission