Delete empty keys instead of setting to undefined

When a serialized form is passed in with blank fields, remove the inputs that are empty. This will prevent Rails from trying to assign these fields to empty strings or nil.