Repair workDone when loading wallet.

We want to get to the bottom of the issue so the assert in Confidence.setWorkDone() should not fire on loading currupt wallets. And we need this repair fix anyway if we ever want to use the field.