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.