fixed the case of parsing a solitary nil value (fixes #46)