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