fix fmprb_sqrtpos with nonfinite input