Delete related widget when deleting a slideshow

Deleting a slideshow resulted in error on the page where that slideshow was show as the related widget to that slideshow didn't get deleted.