LB-914: Media deleting should check for (FK-based) exceptions
* fixed