Fixed issue when exception is present with no stack trace

Not sure how this is possible in testng XML, but the code
now handles this situation. We use <exception> tag's class
attr to set exception name.

all tests passed