When converting to ConstantRange, we should treat undef like a full range. Fixes #68381. (cherry picked from commit 81857940)