certain case of IDEA-128919
(cherry picked from commit 75d55d4) (r=Peter.Gromov)