Prevent object is null or undefined exception when the request returns an unexpected type before deserializing (type for which no handler is defined)
Merge pull request #490 from Naliath/master

Prevent object is null or undefined exception when deserializing a response