don't try to process data on error or empty response