TRUNK-2801 - Fixed an exception when deleting program with enrolled pati...

...ents