On robust optimization of two-stage systems