Fix JS roots assertion when clicking on an element
auto merge of #2340 : glennw/servo/js-click-assert, r=jdm