Bug 1072116 - check the return value of createXPathNode(), r=peterv