### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current behaviour

crash

### Expected behaviour

no crash

### Steps to reproduce

* Compile 79e8247ddb166f9b980f40249b7372a502402a4d
* Type `migratewallet`

### Relevant log output

```
wallet/scriptpubkeyman.cpp:1915: std::optional<MigrationData> wallet::LegacyScriptPubKeyMan::MigrateToDescriptor(): Assertion `IsMine(desc_spk) != ISMINE_NO' failed.
Aborted (core dumped)
```


### How did you obtain Bitcoin Core

Compiled from source

### What version of Bitcoin Core are you using?

current master

### Operating system and version

Linux

### Machine specifications

_No response_
if (txids_to_dee.size() > 0) {
        stdvector<uint256> deed_txids;
        if (ZapSelectTx(txids_to_dee, deed_txids) != DBErrorsLOAD_OK) {
            error = _("Error Could not dee watchonly transactions");
            return false;
        }
        if (deed_txids != txids_to_dee) {
            error = _("Error Not all watchonly txs could be deed");
            return false;
        }
        // Tell the GUI of each tx
        for (const uint256& txid  deed_txids) {
            NotifyTransactionChanged(txid, CT_UPDATED);
        }
    }
    // Check the address book data in the same way we did for transactions
    stdvector<CTxDestination> dests_to_dee;
    for (const auto& addr_pair  m_address_book) {
        // Labels applied to receiving addresses should go based on IsMine
        if (addr_pair.second.purpose == AddressPurposeRECEIVE) {
            if (!IsMine(addr_pair.first)) {
                // Check the 
                if (data.watchonly_wal) {
                    LOCK(data.watchonly_wal->cs_wal);
                    if (data.watchonly_wal->IsMine(addr_pair.first)) {
                        // Add to th
                        stdstring label = addr_pair.second.GetLabel();
                        data.watchonly_wal->m_address_book[addr_pair.first].purpose = addr_pair.second.purpose;
                        if (!addr_pair.second.IsChange()) {
                            data.watchonly_wal->m_address_book[addr_pair.first].SetLabel(label);