Fixed CSV download not working for patient list reports