@jimfcarroll I think this is fine as is. It happens where the user (or a script) calls RunScript(/path/to/some/script.py), where we therefore don't have an add-on object.
[python] fix scripts run directly that aren't an add-on. fixes #14265
jenkins build this please
It looks like the jenkins failure is unrelated.
It looks like there's 2 places this could affect and both of them pass responsibility for interpreting the addon id back to a python script. One is in the python Addon object. The other is in the python Monitor object. So this should fix the crash and scripts will need to handle an empty string return value.
Looks good to me.