title: Parent node is null after replaceWith jQuery method
body: <p>I'm using jQuery to manipulate DOM in my project. I've got class method, that works like this:</p>
  
  <pre><code>&lt;!-- language: lang-js --&gt;    
  var template = this._Template.split('{0}');
      var content = template[0] + this._Content + template[1];
      if (!this._BlockNode) {
          this._BlockNode = $(content);
          this._ParentNode.append(this._BlockNode);
      }
      else {
          this._BlockNode.replaceWith(content);
      }
  </code></pre>
  
  <p>Everything is ok on the first call of this method, because it creates node and appends it to parent node. The second call (using <code>replaceWith()</code> method) works ok too. But after it property <code>this._BlockNode[0].parentNode</code> is null. So when I call it third time and <code>replaceWith()</code> works with new <code>_.BlockNode</code> without <code>.parentNode</code> property it does not replace content of node because of this check: <code>if ( !isDisconnected( this[0] ) ) { //line 5910 in jQuery 1.8.3</code>.<br>
  How to deal with it?</p>