Check if the 'stack' field exists since the thrown object might not be an Error.

In my case, throwing an object that didn't contain a stack field would cause the spec to fail silently.