fix to not parse empty string as NaN, fixes #21