Don't fire events on module refresh with --local

Closes #12173

Use .get()