math dynop: Fix cmod_p_p_n* for NaN and Inf #1147

Return a string in this case.