CIPs: prevent unpublishing and fix attachment preview.