LB-545: Embed URL crashes if a user who has published posts is deleted
* adjusted the upgrade script