Issue #606 incorrect bindings for the HTML select widget

In case both value and selectedIndex are bound to the HTML select,
initialise them properly in special cases (NotANumber, null, out of the boundaries)