BUG FIXED #2784 HTML parsing/output improvements Rebuilt, updated the docs

BUG FIXED #2784
HTML parsing/output improvements
Rebuilt, updated the docs
Improvement of regression scripts, make testall should look clean
Released as 1.7.4
diff --git a/SAX.c b/SAX.c
index 3461fbb..cfc23f1 100644
--- a/SAX.c
+++ b/SAX.c
@@ -811,6 +811,12 @@
      * concatenate it, else create a new node of type text.
      */
 
+    if (ctxt->node == NULL) {
+#ifdef DEBUG_SAX_TREE
+	fprintf(stderr, "add chars: ctxt->node == NULL !\n");
+#endif
+        return;
+    }
     lastChild = xmlGetLastChild(ctxt->node);
 #ifdef DEBUG_SAX_TREE
     fprintf(stderr, "add chars to %s \n", ctxt->node->name);