fix(process): validate whitespace-only loader environment values (#36431)