Added check for bad server response.
Merge branch 'release/1.0' into develop