Prevent object is null or undefined exception when the request returns an unexpected type before deserializing (type for which no handler is defined)