check if tuple has id before calling isl_{set,map}_get_tuple_id