Fix jsp logic to check programDetailId != 0 instead of != null. Added
null check for training id in service.