Check the resource group's existence before destroying it.