TRUNK-2801 - Fixed an exception when deleting program with enrolled patients
(cherry picked from commit 58249e366e7e327c663dc5018efd26d271961ec3)