title: Meteor autoform form is undefined
body: <p>I am trying to use a quickform to do method-update but whenever I type and submit the following errors appear in the console.</p>
  
  <pre><code>Uncaught TypeError: Cannot read property 'validation' of undefined
  Uncaught TypeError: Cannot read property 'autosave' of undefined
  Uncaught TypeError: Cannot read property 'type' of undefined
  
  {{#quickForm id="archiveIssue" type="method-update" meteormethod="editIssue" collection=collection doc=doc autocomplete="off"}}
    {{&gt; afQuickField name='Notes'}}
  {{/quickForm}}
  </code></pre>
  
  <p>The helper function to retrieve the collection.</p>
  
  <pre><code>Template.archiveIssue.helpers({
    doc: function () {
      return Session.get("archiveDoc");
    },
    collection: function () {
      return Collections.Issues;
    }
  });
  </code></pre>
  
  <p>The problems do not come from the meteor method, the method never actually gets called. They started appearing after updating the autoform package -> <a href="https://github.com/aldeed/meteor-autoform/blob/master/CHANGELOG.md" rel="nofollow">https://github.com/aldeed/meteor-autoform/blob/master/CHANGELOG.md</a></p>
  
  <p>The <code>Cannot read property 'validation' of undefined</code> appears on keyup for everything typed. The other 2 appear when I attempt to submit.</p>
  
  <p>Methods</p>
  
  <pre><code>if (Meteor.isServer){
    Meteor.methods({
      newIssue: function(doc) {
        check(doc, Schema.Issues);
        Collections.Issues.insert({
          User: Meteor.user()._id,
          Description: doc.Description,
          createdAt: new Date,
          Archived: {
            "Archived": false,
            "User": null,
            "Notes": null
          },
        });
      },
      editIssue: function(modifier, docId) {
        console.log('editIssue called; modifier = ' + JSON.stringify(modifier, null, 4) + '; docId = ' + docId);
        check(modifier, Schema.Issues);
        Collections.Issues.update({
            "_id": docId
          },
          modifier
        );
      },
    });
  }
  </code></pre>
  
  <p>Schema</p>
  
  <pre><code>Collections.Issues = new Mongo.Collection('issues');
  
  Schema.Issues = new SimpleSchema({
    Description: {
      type: String,
      max: 500,
      optional: true
    },
    User: {
      type: String,
      label: "User",
      optional: true
    },
    Notes: {
      type: String,
      label: "Notes",
      optional: true
    },
    Archived: {
      type: Object,
      optional: true
    },
    "Archived.Archived": {
      type: Boolean,
      optional: true
    },
    "Archived.User": {
      type: String,
      max: 50,
      label: "Archiving User",
      optional: true
    }, 
    "Archived.Notes": {
      type: String,
      label: "Notes",
      optional: true
    }
  });
  
  Collections.Issues.attachSchema(Schema.Issues);
  </code></pre>
  
  <p>Templates</p>
  
  <pre><code>&lt;template name="issues"&gt;
      &lt;div style="width:90%"&gt;
          &lt;h1&gt;&lt;i class="fa fa-exclamation-triangle"&gt; Issues&lt;/i&gt;&lt;/h1&gt;
        &lt;h2&gt; Active &lt;/h2&gt;
          {{&gt; issueModal}}
          {{&gt; tabular table=TabTables.Issues selector=Active_Selector class="table table-striped table-bordered table-condensed" width="100%"}}
        &lt;h2&gt; Archived &lt;/h2&gt;
          {{&gt; tabular table=TabTables.Issues_Archived selector=Archive_Selector class="table table-striped table-bordered table-condensed" width="100%"}}      
      &lt;/div&gt;
  &lt;/template&gt;
  
  &lt;template name="issueModal"&gt;
      &lt;div class="modal fade" id="insertIssueModal" role="dialog"&gt;
        &lt;div class="modal-dialog"&gt;
          &lt;div class="modal-content"&gt;
            &lt;div class="modal-header"&gt;
              &lt;button type="button" class="close" data-dismiss="modal"&gt;&amp;times;&lt;/button&gt;
              &lt;h4 class="modal-title"&gt;New Issue&lt;/h4&gt;
            &lt;/div&gt;
            &lt;div class="modal-body"&gt;
              &lt;p&gt;{{&gt; insertIssue}}&lt;/p&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
  
      &lt;div class="addButton"&gt;&lt;button type="button" class="btn btn-success" data-toggle="modal" data-target="#insertIssueModal"&gt;&lt;i class="fa fa-plus-square fa-lg"&gt; Add Issue&lt;/i&gt;&lt;/button&gt;&lt;/div&gt;
  &lt;/template&gt;
  
  &lt;template name="insertIssue"&gt;
    {{#quickForm id="insertIssue" type="method" meteormethod="newIssue" collection=collection validation="keyup" fields="Description" omit="User,Archived.Archived,Archived.User,Archived.Notes" autocomplete="off"}}
    {{/quickForm}}
  &lt;/template&gt;
  
  &lt;template name="archiveIssueModal"&gt;
      &lt;div class="modal fade" id="archiveIssue" role="dialog"&gt;
        &lt;div class="modal-dialog"&gt;
          &lt;div class="modal-content"&gt;
            &lt;div class="modal-header" &gt;
              &lt;button type="button" class="close" data-dismiss="modal"&gt;&amp;times;&lt;/button&gt;
              &lt;h4 class="modal-title" &gt;&lt;i class="fa fa-archive"&gt; Archive Issue&lt;/i&gt;&lt;/h4&gt;
            &lt;/div&gt;
            &lt;div class="modal-body"&gt;
              &lt;p&gt;{{&gt; archiveIssue}}&lt;/p&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="archiveButton" style="margin: auto 0;" align="center"&gt;
        &lt;button id="archiveButton" type="button" class="btn btn-xs btn-info" data-toggle="modal" data-target="#archiveIssue"&gt;&lt;i class="fa fa-archive"&gt; Archive&lt;/i&gt;&lt;/button&gt;
      &lt;/div&gt;
  &lt;/template&gt;
  
  &lt;template name="archiveIssue"&gt;
    &lt;div align="left"&gt;
      {{#quickForm id="archiveIssue" type="method-update" meteormethod="editIssue" collection=collection doc=doc autocomplete="off"}}
        {{&gt; afQuickField name='Notes'}}
      {{/quickForm}}
    &lt;/div&gt;
  &lt;/template&gt;
  </code></pre>
  
  <p>Archive doc is set from a helper</p>
  
  <pre><code>Template.archiveIssueModal.events({
    "click .archiveButton": function (event) {
      Session.set("archiveDoc", this);
    }
  });
  </code></pre>