mshtml: Moved getting select's option element by index to separated function.