After e3894f0a07, the UV sculpt struct doesn't inherit from Paint anymore. Pull Request: https://projects.blender.org/blender/blender/pulls/133655
e3894f0a07
Only runs on factory startup file, so not all possible paths are covered. But should reduce likeliness of issues like #133551 in the future.