Repo with nil branches should not cause problems when getting cached repos