[ValueRange] fix - if exception error was varable not declared