Take care of case when response is not a dict