The aq chain to the plone content object (the 'parent') can vary in length depending on where we render. Go up the aq chain until we are out of nested panels, portlet assignments, and panel managers. (The chain is long when rendering panels, maybe in the footer, on a panel portlet edit form).