--- transform_org.c	2015-11-06 11:19:41.876081548 +0530
+++ transform.c	2016-01-04 11:46:53.850981372 +0530
@@ -686,7 +686,7 @@
 xsltAddChild(xmlNodePtr parent, xmlNodePtr cur) {
    xmlNodePtr ret;
 
-   if ((cur == NULL) || (parent == NULL))
+   if (cur == NULL)
        return(NULL);
    if (parent == NULL) {
        xmlFreeNode(cur);
