Remove the return value from DefineDOMInterface.

This moves the assertion from its only caller into the function itself, to
clarify that we don't intent to deal with any failure here.
auto merge of #2113 : Ms2ger/servo/DefineDOMInterface, r=jdm

This moves the assertion from its only caller into the function itself, to
clarify that we don't intent to deal with any failure here.