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