Fix #14753: Check if head is born before trying to detect main language
This MR makes sure that head exists before trying to detect the main language. This prevents errors on repo's without a master branch.
Closes #14753 (closed)
This MR makes sure that head exists before trying to detect the main language. This prevents errors on repo's without a master branch.
Closes #14753 (closed)