Robust Coreset Construction for Distributed Machine Learning