Fixes #25626 This is not the greatest workaround but at least it works.
See /docs/development/patches.md.