Do not crash when deleting branches