[CM-169] Segfault when modernizing for loop in 3.4.1