Allow for err.stack to be undefined without exploding

The null-ness of this is somewhat arbitrary. If someone thinks undefined or empty string would be a happier implementation, I'm amenable.