title: ReferenceError: list is not defined with mongoose
body: <p>I am getting an strange issue while trying to write to db using the following:</p>
  
  <pre><code>app.post('/l/create', function(req, res) {
      var text = req.body.text;
      console.log('Inside create');
      console.log(text);
  
      var listObj = {
          index: 0,
          name: text,
          cards: []
      };
  
      console.dir(listObj);
  
      DB.ListTable.create(listObj,
          function(err) {
              if (err) res.send(err);
  
              getSnippets(res);
          }
      );
  });
  </code></pre>
  
  <p>Here is the error message i got:</p>
  
  <pre><code>C:\NodeApps\myapp\node_modules\mongoose\lib\document.js:1116
      if (list.path.indexOf(lastPath) !== 0) {
          ^
  ReferenceError: list is not defined
  at C:\NodeApps\myapp\node_modules\mongoose\lib\document.js:1116:9
      at Array.forEach (native)
      at model.Document.$__dirty 
      (C:\NodeApps\myapp\node_modules\mongoose\lib\document.js:1115:7)
  </code></pre>
  
  <p>I dont get this while i run a delete on the table.</p>
  
  <p>I am what might be causing this. Please help.</p>