Cancel edit prior reparenting the applet
First go out of applet edit mode, get rid of the config overlay, release mouse grabs in preparation of applet reparenting.
Depends from plasma-workspace!4053 (merged)
deleting items that have the current mouse grab can cause weird behaviors or crashes