The fix was present in trunk and 6000.5/staging, but was missing a 6000.4/staging backport. The PR includes a fix for this issue among a few other missed backports.
Reproduction steps:
1. Open the attached “IN-105096_Repro.zip“ project
2. Open the “Assets/ReproScene.unity“ Scene
3. Enter the Play Mode
4. Observe the Console
Expected result: “9 9 -1 -1“ is logged
Actual result: “1 0 1 2147483647“ is logged