The chief medical examiner, county medical examiner, judge, or coroner permitting such pituitary gland removal, and any donee or agency acquiring such organ, shall be immune from civil or criminal liability incurred as a result of the removal in accordance with this part, if no objection was made by next of kin prior to the autopsy to the official having jurisdiction over the autopsy.