Fix closing of <option> when parsing </optgroup> …
We are supposed to check whether the parent of the <option> is an <optgroup>. Instead we were checking whether the child of the <html> is an <optgroup>, which I don't believe is even possible.