Robustified Learning for Online Optimization with Memory Costs