[runtime] Applied patch from Kyle Edwards <kyleedwardsny@gmail.com>. Fix isinf () check with clang. Fixes #20244.