In ::rename(), added a verification to check whether DomTreeNode* domtree is null.