Fixed crash when the reponse object is null