[api] catch -nan values in rrd:fetch