Fix cleanup of notificationstore after datasource delete.