check for undefined modules in regSetting, fixes #245