checkDetectionsBeforeRelease function

Check if there are detections for the target tags before release.