Fix generate release notes script on first stable (#42061)

Don't crash in generate-release-notes on the first stable
commit on a branch.

Release Notes:

- N/A
2ec5ca0e05Conrad Irwin committed on 11/6/2025, 6:25:30 AM· committed by GitHubparentf8da550
1 file changedLine totals unavailable