#47: html_form.js, only add 'input' attributes if they are not 'undefined'