fix bug in print test stats
Apparently GIT_DEFAULT_BRACH can be empty, it looks like `github.event.repository.default_branch` is not populated for schedule-triggered workflows
Pull Request resolved: https://github.com/pytorch/pytorch/pull/74349
Approved by: https://github.com/seemethere, https://github.com/janeyx99