[FIX] Work package priority deletion

Implements [ticket 2685](https://www.openproject.org/issues/2685)