Fix exception when Content-Type is empty and response type is not Html