Closes #3639186
Disclosure: AI was used to find the cause and draft the fix. I reviewed and tested the fix myself.