In CWallet::LoadWallet, use this to detect and empty wallet with no keys
This commit does not change behavior.
https://github.com/bitcoin/bitcoin/pull/17261/commits/eb81fc3ee58d3e88af36d8091b9e4017a8603b3c
Depends on D7838
Partial backport of Core PR17261