NPE in compiler fixed
#SCL-8076 fixed
(cherry picked from commit 1c9ceb3)