Make sure selected job is not undefined