Modified main form element to not print empty properties.
Most form elements will not print empty attributes now.