Handle the case where the remote server returns an invalid response
Merge pull request #201 from julien731/master

Handle the case where the remote server returns an invalid response