title: Error trying to update document using autoForm with Schema in Meteor
body: <p>Error message:</p>
  
  <blockquote>
    <p>"Uncaught Error: After filtering out keys not in the schema, your modifier is now empty"</p>
  </blockquote>
  
  <p>Using autoform with collection2 and simple schema in Meteor.
  The schema:</p>
  
  <pre><code>Injuries = new Mongo.Collection('injuries');
  
  Rehab = new SimpleSchema({
    exercise: {
      type: String,
      label: "Rehab Exercise"
    },
    sets: {
      type: Number,
      label: "Sets"
    },
    duration: {
      type: Number,
      label: "Set Duration (in Minutes)"
    },
    date: {
      type: String,
      label: "Date of Rehab Exercise"
    },
    rehabnotes: {
      type: String,
      label: "Notes: i.e. 70% Intensity During Sprints",
      max: 200
    },
    injuryid:{
      type: String,
    }
  });
  
  Injuries.attachSchema(new SimpleSchema({
    player: {
      type: String,
      label: "Player",
      max: 50
    },
    injury: {
      type: String,
      label: "Injury"
    },
    notes: {
      type: String,
      label: "Notes",
      max: 200
    },
    injurydate: {
      type: Date,
      label: "Date of Injury",
    },
    rehab: {
      type: [Rehab],
      optional: true
    }
  }));
  </code></pre>
  
  <p>And the Form Code in the Template:</p>
  
  <pre><code> {{#autoForm collection="Injuries" schema="Rehab" id="insertRehabForm" type="update"}}
            &lt;fieldset&gt;
  
                  {{&gt; afQuickField name='exercise' options=options}}
                  {{&gt; afQuickField name='sets'}}
                  {{&gt; afQuickField name='duration'}}
                  {{&gt; afQuickField name='date'}}
                  {{&gt; afQuickField name='rehabnotes' rows=6}}
  
            &lt;/fieldset&gt;
             &lt;button type="submit" class="btn btn-primary"&gt;Insert&lt;/button&gt;
                  {{/autoForm}}
  </code></pre>
  
  <p>I can insert documents just fine with the autoform on the home page, using this custom form on the individual document page I receive the error on submission. </p>
  
  <p>I have one collection hook setup up for before submissions, but this looks like it is just a schema error, perhaps the <code>Rehab</code> array that I have set up on the original <code>Injuries</code> schema is messing this up? The searches I've done for this have all been about the "Type" parameter in the schema not matching what is expected, but I've checked those here and they look good. Suggestions?</p>