Fixed display of template in last job due to false sent in jobs array from resource (added is array check).