Added empty input data error catching for PCA analysis.