Improved error description and failure reason
Merge pull request #161 from github/nil-dictionary-error

Improved error description and failure reason when the JSON dictionary is nil