[Fixed JENKINS-8614] ProcessTreeTest fails on Windows
Add exception handler for getEnvironmentVariables().