Fix an issue when if the "config.params" is not defined the error occurs during setting the parameters to it