Keep support for major 17 by using a version check for the changed API.
Fixes #93907.
(cherry picked from commit 4c72d599f0)
Keep support for major 17 by using a version check for the changed API.
Fixes #93907.
(cherry picked from commit 4c72d599f0)