### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behaviour *** test_framework.authproxy.JSONRPCException: Internal bug detected: RPC call "getaddressinfo" returned incorrect type: { "isscript": "key missing, despite not being optional in doc" } f.e., when called with `bcrt1pfeesnyr2tx` on regtest ### Expected behaviour I expect it to not return an internal bug ### Steps to reproduce getaddressinfo "bcrt1pfeesnyr2tx" with a wallet active ### Relevant log output _No response_ ### How did you obtain Bitcoin Core Compiled from source ### What version of Bitcoin Core are you using? master@2c79abc7ad4850e9e3ba32a04c530155cda7f980 ### Operating system and version Ubuntu 22.04.4 LTS ### Machine specifications _No response_