fix: ensure calling env command with options only would not throw
#8070
| Job | Run time |
|---|---|
| 2m 6s | |
| 2m 6s |
env command with options only would not throw
#8070
| Job | Run time |
|---|---|
| 2m 6s | |
| 2m 6s |