Fix exception when response is empty