"npm test" now runs "grunt jison jasmine" instead of "grunt jasmine".
Added explicit error handling for null and undefined types.