handle null for evaluating JS value. #4235
auto merge of #4397 : jdm/servo/issue_4235, r=jdm

Rebased from #4241.