check for null values in response values, to avoid crash