Data-Driven Methods For Safe Task Transfer Learning With Model Predictive Control