IDEA-113175 Expanding nodes in Variables(Debug tools window) while debug application throws exception

(cherry picked from commit d40c1f8ee5b5f85b90ee20b987e06b6715150fc2)