Fix: case where form input does not contain value attribute.

Before fix: field will not be added if form input does not contain value attribute.
After fix: field will be added if form input does not contain value attribute.