Avoid NPE when building as git submodule

2 jobs for master in 4 minutes and 44 seconds (queued for 5 seconds)
Status Name Job ID Coverage
  Build
passed build #70503

00:03:11

passed test #70504

00:04:44