Fixed NPE, caused by newer jenkins versions
Merge pull request #8 from ThStock/master

Fixed NPE, caused by newer jenkins versions