title: Meteor publish undefined or Publish function can only return a Cursor or an array of Cursors
body: <p>Having some wired issues with my Meteor publish when I have findOne it works but with find it does not and with findOne I get a cursor error. </p>
  
  <p>Here is my code </p>
  
  <pre><code>Meteor.publish('organizations', function() {
      var user = Meteor.users.findOne(this.userId);
      if(!user) return '';
       var debugTest = Organizations.findOne(user.organizationId);
        console.log(debugTest._id);
      //return Organizations.findOne({_id: user.organizationId});
  }); 
  </code></pre>
  
  <p>For this I get undefined</p>
  
  <p>If I do the following </p>
  
  <pre><code>Meteor.publish('organizations', function() {
    var user = Meteor.users.findOne(this.userId);
    if(!user) return '';
    console.log(user.organizationId);
    var debugTest = Organizations.findOne(user.organizationId);
    console.log(debugTest._id);
    //return Organizations.findOne({_id: user.organizationId});
  });
  </code></pre>
  
  <p>I get back both ID's but with the return I get the following error </p>
  
  <p>Teh I
  NvoF9MimZ6tJ95c3m
  NvoF9MimZ6tJ95c3m</p>
  
  <p>The error 
  Exception from sub KLnQphHTXmQcjEi2D Error: Publish function can only return a Cursor or an array of Cursors</p>