Fixed empty stacktrace info and a potential NullReferenceException when building an ExceptionFrame

Fixed empty stacktrace info and added a check to prevent an exception from being thrown when building an ExceptionFrame and a method in the stack has no declaring type (e.g. a lambda expression)