What is the primary purpose of maintaining chain of custody for forensic evidence collected by a forensic pharmacy nurse?