Fix overriding of host names with dummy values in certain cases.