Use Option::or_else in eventdispatcher::dispatch_event.
auto merge of #1863 : saneyuki/servo/1841, r=metajack

fix #1841
Change from TNode/TElement::with_element() to as_element().