Set email and attachment field to accept null values.
This is after a change into the form, the form now can be sent without an attachment and without email address
if "no action" option is checked.
Changed the check on id.
If no file is attached we want to proceed anyway assigning no value to "attachment" field during
the construction of our array.