NaN value handling in the CollectD input (LOGSTASH-1763)

This commit fixes and adds tests for the NaN issue described in LOGSTASH-1763

ping @untergeek