Fixed possible being outside the boundaries. Changed check math_Recipes to work with NaN, Inf, Ind. Test case for issue CR25559