The problem here was that `RNA_parameter_set_lookup` was used incorrectly. Instead of passing in the `PointerRNA`, one can pass in the value directly. If one wanted to pass the `PointerRNA`, one would have to use `PARM_RNAPTR`, but that's not necessary here. Pull Request: https://projects.blender.org/blender/blender/pulls/115347