removing unnecessary ToList() calls when getting the Root TFS branch for a given repository path.