Fix broken assert in built/validated ledger mismatch handler