Not letting a metric result with NaN value to be persisted.

Signed off by: Diego Araújo <diegoamc90@gmail.com>