CB-5364 config_parser - check for null element text
diff --git a/src/config_parser.js b/src/config_parser.js
index 658874d..249a03f 100644
--- a/src/config_parser.js
+++ b/src/config_parser.js
@@ -126,8 +126,8 @@
                 }
 
                 function textMatch(elm1, elm2) {
-                    var text1 = elm1.text.replace(/\s+/, ""),
-                        text2 = elm2.text.replace(/\s+/, "");
+                    var text1 = elm1.text ? elm1.text.replace(/\s+/, "") : "",
+                        text2 = elm2.text ? elm2.text.replace(/\s+/, "") : "";
                     return (text1 === "" || text1 === text2);
                 }
             }