Fix for #933 issue

This PR fixes #933, and some minor glitches detailed in the commit messages.
Oops, I misunderstood your comment.

Yes, ther is a bug in form-field-renderer.html, which uses empty() to check if the value is defined, and empty(0) is true.

This will be fixed in another PR.