Fixed a bug where related entities were undeletable even though the album referencing them was deleted.