Fix for NPE (#1902)
Fix for NPE (#1902)

Unblocks https://github.com/jenkinsci/git-plugin/pull/578.
jenkinsci/blueocean-plugin,jenkinsci/blueocean-plugin,jenkinsci/blueocean-plugin,jenkinsci/blueocean-plugin,jenkinsci/blueocean-plugin