libopkg: fix segmentation fault when traversing conflicts