Fix unused_result warning in script_task
auto merge of #2506 : Manishearth/servo/clickevent-warning, r=jdm