Select options binding: set sometimes reverts to default value

It seems that the html replace doesn't always do the right thing or the
value binding runs to soon. This fix ensures that we try to set the
value we want and if we can't it will set the default value.