fix bug #9: if error object has no attribute stack - trace will return nothing