Gracefully handle invalid chunks in HttpSocket

When invalid chunks are detected we should assume the server is
incorrect and handle the remaining content as a single large chunk.

Refs #5140
Merge pull request #5196 from cakephp/issue-5140

Gracefully handle invalid chunks in HttpSocket
Fix mistake with previous commit.

I forgot to put the correct variable into the query like a doofus.

Refs #4168
Merge pull request #1 from cakephp/master

sync