Fix pkg stats when no repositories are configured