NPE fixed
Mixing in ScBlockStatement in ScFunction
#SCL-5868 fixed
Simplification with block statements