Fix potential segfault on ENOENT on job file