Fixed compatibility with plone.app.contenttypes