checking that item id is not null before importing