Core/Loading: Fix crash in LoadMissingKeyChains

Also emptied `world`.`keychain_db2`

Closes #13566