fix select-option to initially set correct value

also setAttribute fails to set the empty attribute if given ""