Do not send null input name attributes on xhr send

Prevent adding formData to XHR with a null key. This happens when the
input attribute on a form is unset and causes an error.

I needed to do this because the submit button was being added to the
xhr formData (Amazon S3 can restrict requests to specific header and
this wasn't specified) and removing the name attribute from the submit
button sent a 'null' key in post.
Why is the `if inputName != null` not around the whole block here. This would still add empty select fields.