[FIX] Delete former deleted planning elements from database migration

Implements [ticket 3055](https://www.openproject.org/work_packages/3055)