handling of inputs with empty value

prevents writing NaN into the input-filed by pressing [+] / [-] if the
field-value is empty
Merge pull request #5 from sba/master

handling of inputs with empty value