diff --git a/product/ERP5/Document/TextDocument.py b/product/ERP5/Document/TextDocument.py
index b9f0f44c82ce45a50e5927d1efc0d26e3e80529d..5999418522cd29abdf745fac0b33111a6e2a18ec 100644
--- a/product/ERP5/Document/TextDocument.py
+++ b/product/ERP5/Document/TextDocument.py
@@ -161,7 +161,7 @@ class TextDocument(Document, TextContent):
           mapping = guarded_getattr(self, method_id)(**kw)
         except AttributeError:
           LOG('TextDocument', WARNING, 'could not get the substitution mapping method %s from %r, so the content will not be substituted.' % (method_id, self))
-          mapping = {}
+          return text
 
         is_str = isinstance(text, str)
         if is_str: