[minor] fix error handling on empty API responses in client package
[minor] fix error handling on empty API responses in client package

sunnygkp10/mig,therealkbhat/mig,datachand/mig,rezen/mig,vladimirdiaconescu/mig,datachand/mig,mozilla/mig,mozilla/mig,ameihm0912/mig,mvanotti/mig,mvanotti/mig,rezen/mig,gdestuynder/mig,yvesago/mig,zerosign/mig,datachand/mig,therealkbhat/mig,gdestuynder/mig,rezen/mig,sunnygkp10/mig,ameihm0912/mig,gdestuynder/mig,deathping1994/mig,jboyer2012/mig,zerosign/mig,jboyer2012/mig,jvehent/mig,mozilla/mig,therealkbhat/mig,jboyer2012/mig,deathping1994/mig,zerosign/mig,rayyang2000/mig,jvehent/mig,mvanotti/mig,ameihm0912/mig,sunnygkp10/mig,deathping1994/mig,gdestuynder/mig,jboyer2012/mig,sunnygkp10/mig,deathping1994/mig,yvesago/mig,zerosign/mig,rayyang2000/mig,vladimirdiaconescu/mig,vladimirdiaconescu/mig,datachand/mig,rayyang2000/mig,yvesago/mig,mozilla/mig,jvehent/mig,pap/mig,rezen/mig,vladimirdiaconescu/mig,jvehent/mig,yvesago/mig,rayyang2000/mig,mvanotti/mig,mozilla/mig,pap/mig,pap/mig,pap/mig,therealkbhat/mig