title: Empty alert changes function behaviour
body: <p>I have the strangest Bug, my Javascript function behaves differently depending on wether or not an alert is set on a specific Line.</p>
  
  <p>Basically the Code looks like this:</p>
  
  <pre><code>var friendsHtml = 'Error String';
  $.get("url", function(xml){
      $(xml).find('friend').each(function(){
          friendsHtml = 'html stuff';
      });
  });
  var div = '&lt;div&gt;'+friendsHtml+'&lt;/div&gt;';
  $("#friends_window").html(div);
  </code></pre>
  
  <p>Which will always display the Error String and not the HTML String.
  But when i add an empty alert on this line, everything works just fine:</p>
  
  <pre><code>var friendsHtml = 'Error String';
  $.get("url", function(xml){
      $(xml).find('friend').each(function(){
          friendsHtml = 'html stuff';
      });
  });
  alert("");
  var div = '&lt;div&gt;'+friendsHtml+'&lt;/div&gt;';
  $("#friends_window").html(div);
  </code></pre>
  
  <p>I really don't get it.</p>