protects OptionList from trying to set CSS class on elements that don't exist