TRUNK-3850: Deleted for loop in validate method in ProgramValidator.java