Make environmentvariable58_test backwards-compatible for the nil pid case, for remote scans.