Safer handling of valid but empty responses