Whenever the pharmacist’s copy of a controlled substance prescription is removed by a peace officer, agent of the Attorney General, or inspector of the Board of Pharmacy, or investigator of the Division of Investigation of the Department of Consumer Affairs for the purpose of investigation or as evidence, the officer or inspector or investigator shall give to the pharmacist a receipt in lieu thereof.