Combine these two lines and change it so `parseFlot` is called on element.firstChild.data.  Something like: `return defined(element) ? parseFloat(element.firstChild.data) : undefined;`

The problem is that you can end up calling `parseFloat` when value is undefined, resulting in `NaN`