improve malformed html handling in libyo::htmlparser