diff --git a/bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/ContributionTool_getCandidateTypeListByExtension.xml b/bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/ContributionTool_getCandidateTypeListByExtension.xml
index c17da8f8bd32c05ad5930a4dee28713288602e04..c5df21fa14434ef68b08a6b627ae63ead00e5dae 100644
--- a/bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/ContributionTool_getCandidateTypeListByExtension.xml
+++ b/bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/ContributionTool_getCandidateTypeListByExtension.xml
@@ -57,9 +57,14 @@
   Find by give filename extension which portal_type is the right one.\n
   Use content_type_registry for that. \n
 """\n
+from Products.CMFCore.utils import getToolByName\n
 \n
-pt = context.content_type_registry.findTypeName(\'a.%s\' %ext, None, None)\n
-return (pt,)\n
+registry = getToolByName(context, \'content_type_registry\', None)\n
+if registry is None:\n
+  return (None, )\n
+else:\n
+  pt = registry.findTypeName(\'a.%s\' %ext, None, None)\n
+  return (pt,)\n
 </string> </value>
         </item>
         <item>
@@ -97,9 +102,12 @@ return (pt,)\n
                         <value>
                           <tuple>
                             <string>ext</string>
-                            <string>_getattr_</string>
+                            <string>Products.CMFCore.utils</string>
+                            <string>getToolByName</string>
                             <string>context</string>
                             <string>None</string>
+                            <string>registry</string>
+                            <string>_getattr_</string>
                             <string>pt</string>
                           </tuple>
                         </value>
diff --git a/bt5/erp5_ingestion/bt/revision b/bt5/erp5_ingestion/bt/revision
index 86ee83a4a26867a79e0a5a8948153cff8f4cf9a4..ac4213d6e97d9cfeb1d7bc8f948c06114a56de18 100644
--- a/bt5/erp5_ingestion/bt/revision
+++ b/bt5/erp5_ingestion/bt/revision
@@ -1 +1 @@
-40
\ No newline at end of file
+43
\ No newline at end of file