Fix another case for DOM.enable()

This is for #10191.

Fix another case for DOM.enable(). Also DOM.disable().