Workaround an issue when using setAttribute to modify the value attribute in an input element

Here's the issue in a plain test:

![dombug](https://cloud.githubusercontent.com/assets/1460090/3557031/f193345a-092a-11e4-983d-b5441ebc7cf8.gif)