VE-717: don't execute JS when extension is disabled.