title: MVC @helper error with HTML.Raw
body: <p>I have the following code in a Razor Helper file</p>
  
  <pre><code>@helper MakeNoteBlank(string content)
  {
      string msg = "";
  
      if(content == null)
      {
          msg = "&amp;nbsp;";
      }
      else
      {
          msg = content;
      }
  
      &lt;div class="note"&gt;
          &lt;p&gt;
               @Html.Raw(msg)
          &lt;/p&gt;
      &lt;/div&gt;
  }
  </code></pre>
  
  <p>The code fails at execution with the @Html.Raw(..) statement, stating that
  "Object reference not set to an instance of an object." </p>
  
  <p>If I remove the @Html.Raw(..) and output 'msg' directly then there is no problem.</p>
  
  <p>What am I doing wrong?</p>