[WiP] [JENKINS-23641] - Handle possible nulls if Git checkout fails