If number of conflict confirms cannot be determined, this means that the block is still unknown or not yet part of the main chain, for example during a reindex. Do nothing in that case, instead of crash with an assertion failure. (the block will pass by the wallet again eventually, re-marking the transaction as conflict)
Fixes #7234.