Add Empty Check for GetEnvironmentVariable Method.