[Statistics] Fix issue related to non git specs github_stats_if_needed