Handle null environment variables