Fixed issue #7191: Survey links not deleted when deactivating a survey