Fix NullPointerException when fetching a job that doesn't exist