[BUGFIX] Fixed problem that albums and items are not deleted recursively if a gallery is deleted.