changed checking of SELECT-elements to match the behavior of setting SELECT-elements