Added needed check for empty file input fields

When submitting empty form fields using polymorphic method based on readme, createWithAttachments was not filtering out empty fields.