Added patch to prevent job configuration dialog breaking

I experienced that in some cases the configuration of jkobs was no longer possible  
because teh Definition Template lookup returned null.

Just added some code to prevent the NPE percolating up and breaking the Job Configuration UI.