Fix problem with Job Lookup.

Only perform lookup of previous Job when we found a JobName.