title: Exception in template helper: Cannot read property 'name' of undefined
body: <p>I have been struggling with getting a userprofile to display for a specific user for some time now and I have been reasonably successful. I have ht oe problem where I get the error in the heading.</p>
  
  <p>I publish a schools collection like this</p>
  
  <pre><code>Meteor.publish("schoolData", function () {
    return Schools.find();
  });
  </code></pre>
  
  <p>My subscription looks like this</p>
  
  <pre><code>Meteor.subscribe('schoolData');
  </code></pre>
  
  <p>My HTML looks like this</p>
  
  <pre><code>&lt;template name="userProfile"&gt;
      &lt;title&gt;My Profile&lt;/title&gt;
      &lt;table&gt;
              &lt;tr&gt;
                  &lt;td&gt;User Name: &lt;/td&gt;
              &lt;td&gt;{{userName}}&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;First Name: &lt;/td&gt;
              &lt;td&gt;{{firstName}}&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Last Name: &lt;/td&gt;
              &lt;td&gt;{{lastName}}&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Registered E-mail: &lt;/td&gt;
              &lt;td&gt;{{email}}&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Contact E-mail: &lt;/td&gt;
              &lt;td&gt;{{email}}&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Phone Number: &lt;/td&gt;
              &lt;td&gt;{{phoneNumber}}&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;School: &lt;/td&gt;
              &lt;td&gt;{{schoolName}}&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;First year: &lt;/td&gt;
              &lt;td&gt;{{firstSchoolYear}}&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Last year: &lt;/td&gt;
              &lt;td&gt;{{lastSchoolYear}}&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Matriculated? &lt;/td&gt;
              &lt;td&gt;{{matriculated}}&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;House Name: &lt;/td&gt;
              &lt;td&gt;{{houseName}}&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Country living in: &lt;/td&gt;
              &lt;td&gt;{{country}}&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;City living in: &lt;/td&gt;
              &lt;td&gt;{{cityOfResidence}}&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Industry employed in: &lt;/td&gt;
              &lt;td&gt;{{emplIndustry}}&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  &lt;/template&gt;
  </code></pre>
  
  <p>and the javascript looks like this</p>
  
  <pre><code>Template.userProfile.helpers({
      email: function() {return Meteor.user().emails[0].address},
      userName: function () {return Meteor.user().username},
      firstName: function () {return Meteor.user().profile.firstname},
      lastName: function () {return Meteor.user().profile.lastname},
      phoneNumber: function () {return Meteor.user().profile.phone},
      schoolName: function () {return     Schools.findOne(Meteor.user().profile.schoolName).name;},
      firstSchoolYear: function () {return Meteor.user().profile.firstschoolyear},
      lastSchoolYear: function () {return Meteor.user().profile.lastschoolyear},
      matriculated: function () {return Meteor.user().profile.matriculated},
      houseName: function () {return Meteor.user().profile.housename},
      country: function () {return Meteor.user().profile.country},
      cityOfResidence: function () {return Meteor.user().profile.cityofresidence},
      emplIndustry: function () {return Meteor.user().profile.emplindustry},
      signedUp: function () {return Meteor.user().profile.createdAt},
  });
  </code></pre>
  
  <p>I seem to get the Error
      Exception in template helper: TypeError: Cannot read property 'name' of undefined
  and it mees this is from the Schools collection. 
  Can someone help me spot my mistake please.</p>