Improve commit b777b3b9 such that the odd behavior is also fixed in case the warning dialog is closed without editing the transaction (Cancel is pressed). BUG: 397457