[FIXED JENKINS-20153] checkoutBranch can be used with null branch