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

Closes #12173

Use .get()
Merge pull request #12195 from cachedout/12173

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