fix failure on null

I've found that current master branch fails to parse NULL values in dates and integers. This fixes my case.