Handle read errors properly in gumbo.parse_file() function