Fixes a bug introduced in the fix for #89547.