It's a workaround for JENKINS-8614

ProcessTreeTest failed on Windows 7. The WinProcess getEnvironmentVariables failed for some reason such as privilege. The update is to add exception handle so such test can pass.