Check error.stack exists (Fixes #30)