diff --git a/core/vendor/davclient.js/lib/client.js b/core/vendor/davclient.js/lib/client.js
index 93678f092486b90aad0b274d448c7c51880d05bc..39c1b0f3e933c43c1d600a776c510a7093f3facf 100644
--- a/core/vendor/davclient.js/lib/client.js
+++ b/core/vendor/davclient.js/lib/client.js
@@ -198,7 +198,7 @@ dav.Client.prototype = {
                 var propNode = propIterator.iterateNext();
                 while(propNode) {
                     var content = propNode.textContent;
-                    if (!content && propNode.hasChildNodes()) {
+                    if (propNode.childNodes && propNode.childNodes.length > 0 && propNode.childNodes[0].nodeType === 1) {
                         content = propNode.childNodes;
                     }