Self-Healing First-Order Distributed Optimization with Packet Loss