What happens if the stack does not have an ASG as a resource? Based on what I see, I think it will most likely throw an exception.