Handle deleted branches too