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