I have a simple input field inside a form tag:
I had the same problem with a hidden input field.
Id i set the initial value on 0, it works fine, but sometimes i didn't want to have an initial value of 0.
So i tested with value=" ", a whitespace, and it works for me too.
If you fill the value dynamic from PHP you could do value="= $val+0; ?>" if 0 is fine for you, or value="= $val; ?> " if a whitespace is fine.