Add null check to call of findRecursivelyInUsedDCs(final int depth,
final DevelopmentComponent component, final Item parent,
final Map<String, Item> itemMap, final TopoSortResult topoSortResult,
final Collection<DevelopmentComponent> visitedParents)

Log component name when parent would be null and skip this call.