Handle null when evaluating JS value. Fixes #4235.