LUN-1299:fixed IntegrityError when deleting owners for trashed folders