Fix overzealous warnOnTwoConfigs (backport #9278) (#9283)