make sure value is defined before we try and parse
Merge pull request #28 from ordrin/dev_ricky

make sure value is defined before we try and parse