The localSiteID setting must refer to a site that is known to the SiteLookup service. If this is not the case, a warning should be raised - probably a production warning (wfLogWarning), but at least a devlopment warning (wfWarn).
This warnign existed until it was removed by I1a52ce07943 to fix a problem with qunit tests, see T153729 and T153597. However, that problem would better be addressed by fixing the CI setup, instead of removing the warning that indicates a configuration error.