Add optional main_template patch for Plone 4