Fixed NPE, caused by newer jenkins versions