Fix search in optgroup items

Before the fix: http://jsfiddle.net/t0v2722o/