perf env: Remove unnecessary NULL tests