LPS-34126 Restoring attachment produces PortletException