Fix #13514: Set selectedIndex to -1 when non-matching value is set on a select. Close gh-1191.