diff --git a/product/ERP5/Document/Document.py b/product/ERP5/Document/Document.py
index 27321e26959f8b716b58c6f256b78d2687f1a5e1..746f0c363e5b1c5e8021ea2bbae80d3bd675d075 100644
--- a/product/ERP5/Document/Document.py
+++ b/product/ERP5/Document/Document.py
@@ -1071,7 +1071,7 @@ class Document(XMLObject, UrlMixIn, ConversionCacheMixin, SnapshotMixin):
       A private method which converts to HTML. This method
       is the one to override in subclasses.
     """
-    if not self.getData():
+    if not self.hasBaseData():
       return ''
     if self.hasConversion(format='base-html'):
       mime, data = self.getConversion(format='base-html')
@@ -1086,7 +1086,7 @@ class Document(XMLObject, UrlMixIn, ConversionCacheMixin, SnapshotMixin):
       (without html and body tags, etc.) which can be used to inline
       a preview of the document.
     """
-    if not self.getData():
+    if not self.hasBaseData():
       return ''
     if self.hasConversion(format='stripped-html'): # XXX this is redundant since we never set it
       mime, data = self.getConversion(format='stripped-html')