WEB-14686 Run Configurations: "CreateProcess error=87, The parameter is incorrect" error on invalid environment variable
(cherry picked from commit 394f55f)