Hertha set for survival after Schalke win