Make this safe for Plone before 4.3