Made SDK more tolerant for null values from the API.