remove nil ids from path join