fix work packages still displayed after deletion

[``* `#16147` work packages still displayed after deletion``](http://www.openproject.org/work_packages/16147)
@myabc yes, I'll check if it's not used anywhere else