Defensive check to avoid null in configuration.