jQuery 1.5.1 Sizzle 'cannot read property nodename' child '>' selector with knockoutjs
===

I'm using jQuery 1.5.1 and Knockoutjs 2.0.0.  My situation's a little bit complicated, but as I understand it here's what's happening:

I have some elements bound to Knockoutjs that also have jQuery.live bindings.  Some of these bindings contain the child (parent?) selector '>'.  When I remove the element (using Knockout), I get this error:

'cannot read property nodename of undefined'

> Uncaught TypeError: Cannot read property 'nodeName' of null

thrown by the following code in jQuery (in Sizzle):

    ">": function (checkSet, part) {
      var elem,
    	isPartStr = typeof part === "string",
    	i = 0,
    	l = checkSet.length;
    
      if (isPartStr && !rNonWord.test(part)) {
        part = part.toLowerCase();
    
        for (; i < l; i++) {
          elem = checkSet[i];
    
          if (elem) {
            var parent = elem.parentNode;
            checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;
            //Uncaught TypeError: Cannot read property 'nodeName' of null
          }
        }
    
      } else {
        for (; i < l; i++) {
          elem = checkSet[i];
    
          if (elem) {
            checkSet[i] = isPartStr ?
    			elem.parentNode :
    			elem.parentNode === part;
          }
        }
    
        if (isPartStr) {
          Sizzle.filter(part, checkSet, true);
        }
      }
    }

It seems Knockout is removing elements from the document before jQuery gets around to checking the live bindings, so when the element is finally checked its parent is null, and this error is thrown.  

My question:

Where/how would people recommend I fix this?  I was thinking something like this:

    var parent = elem.parentNode;
    checkSet[i] = parent && parent.nodeName.toLowerCase() === part ? parent : false;

Seems like the '>' selector should fail if the parent is null, but I could be wrong about that.  What would you guys do?