Fixed batching provider for Plone < 4.2.