Exit for empty queue only after we compute replacements.
In case of an update, the initial update list may be empty, but it is then filled up with replacements. Avoid exiting in that case, since we want to present the replacement to the user. Exit after we have completed that part, but before we actually start a transaction.
Showing with 6 additions and 26 deletions