refactor: make function more robust
This MR makes the retrieval of the XML files that belong to an aggregation a bit more robust.
This is needed since TextGrid does not delete aggregated but deleted resources from an aggregation.
This MR makes the retrieval of the XML files that belong to an aggregation a bit more robust.
This is needed since TextGrid does not delete aggregated but deleted resources from an aggregation.