fix work packages still displayed after deletion

[``* `#16147` work packages still displayed after deletion``](http://www.openproject.org/work_packages/16147)