Handle empty responses gracefully