[vcs] IDEA-127576 Fix access to log's DataPack in statistics.
PY-11127 Consider case where only class name is used in raise statment