Fixing bug with default tickFormatter

Change-Id: If53fdb1bf9563834c58cf2b569d0e1a6a7155eb8
Merge pull request #942 from sejordan/tickformatter-bug

Fix incorrect display of NaN with the default tickFormatter.