BIGTOP-1425. gradle build can fail with NPE in an obscure way