Handle case when process.stdout DNE

Fixes https://github.com/sindresorhus/has-color/issues/5