BUG: #1582: detect empty training data
If no samples is found by the MultiImageSamplingRate application, it can be considered a fatal error, so we raise an exception that will also stop the processing in TrainImagesClassifier.
If no samples is found by the MultiImageSamplingRate application, it can be considered a fatal error, so we raise an exception that will also stop the processing in TrainImagesClassifier.