Fix/4.0.x/plf 5343

PLF-5343:  [Migration] gadget upgrade plugin does not work properly