Eliminate nil items from relations