sparklemotion/nokogiri — pull request #1128 by libc (2014-07-15 15:42:37+00:00)
Title: Fix segfault on parsing invalid html

htmlParseChunk does not guarantee to return any error, it can just
return XML_ERR_DOCUMENT_END or XML_PARSER_EOF without setting the last
error.

In that case just raise ArgumentError.

Fixes #1126