Adding conditions for Plone 4.3

This should preserve < Plone 4.3 compatibility.