Fix NullRef on empty stacktrace