Added an exception for selecting options on invalid elements
Simplified the code selecting an option
Merge pull request #85 from stof/validate_select_option

Added an exception for selecting options on invalid elements