[FIXED JENKINS-8614] ProcessTreeTest fails on Windows 

[Fixed JENKINS-8614](https://issues.jenkins-ci.org/browse/JENKINS-8614)
Add exception handler for getEnvironmentVariables().