Fix of IE9 error related to palette and use of optgroup elements in select

....microsoft.com/Forums/is/iewebdevelopment/thread/2ab12546-7bb4-41b6-8d36-442cc0ecb153

when invoking select.remove(..) in IE9 and the select contains optgroup
element, select.remove(..) will throw exception. Solution - catch
exception and remove element using ordinary dom manipulation