handle null for evaluating JS value. #4235