Added sanity check for NULL jobs to pcrs_exec_substitution