Repairing Neural Networks for Safety in Robotic Systems using Predictive Models