Handle the case of an option inside an optgroup