Throw assertion only when the configuration is null