Fix field value loss on focus/blur

This PR fixes few cases when entered value become lost:

1. When field has a value defined in HTML and you focus this field and then set focus to other element, field value disappears.

2. When you manually change value in a field it reverts to previous value on blur.