[BUG] Attachment delete closes work package edit

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