Foreman-rake fails after upgrade of foreman-cli 1.23 to 1.24

**:Problem:
we provide foreman with puppet, It uses foreman-rake. This executes:
/usr/sbin/foreman-rake – config -k ‘puppet_server’ -v ‘puppetmaster.domain.nl’

    Error: Execution of '/usr/sbin/foreman-rake -- config -k 'puppet_server' -v 'puppetmaster,domain.nl'' returned 1: rake aborted!
NoMethodError: undefined method `settings_type' for nil:NilClass
/usr/share/foreman/lib/tasks/config.rake:105:in `block in run_key_values'
/usr/share/foreman/lib/tasks/config.rake:100:in `each'
/usr/share/foreman/lib/tasks/config.rake:100:in `run_key_values'
/usr/share/foreman/lib/tasks/config.rake:77:in `run'
/usr/share/foreman/lib/tasks/config.rake:167:in `block in <top (required)>'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
Tasks: TOP => config
(See full trace by running task with --trace)
Error: /Stage[main]/Profile::Lu_profile_puppet::Foreman/Foreman_config_entry[puppet_server]/value: change from '' to 'puppetmaster,domain.nl' failed: Execution of '/usr/sbin/foreman-rake -- config -k 'puppet_server' -v 'puppetmaster,domain.nl'' returned 1: rake aborted!
NoMethodError: undefined method `settings_type' for nil:NilClass
/usr/share/foreman/lib/tasks/config.rake:105:in `block in run_key_values'
/usr/share/foreman/lib/tasks/config.rake:100:in `each'
/usr/share/foreman/lib/tasks/config.rake:100:in `run_key_values'
/usr/share/foreman/lib/tasks/config.rake:77:in `run'
/usr/share/foreman/lib/tasks/config.rake:167:in `block in <top (required)>'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
Tasks: TOP => config
(See full trace by running task with --trace) (corrective)

Expected outcome:
puppet_server: puppetmaster.domain.nl’
Foreman and Proxy versions:

**Foreman and Proxy plugin versions
puppetmaster.domain.nl’
Distribution and version:
RHEL 7.7
Other relevant data:
Issue occurs after update of foreman-rake which is included in foreman-cli package from version 1.23 to 1.24

You’re running into the problem that the setting was removed so it can’t be found. The rake task doesn’t properly handle this.

Refactor #27914: Drop puppet_server setting - Foreman. The tl;dr is that it’s been ignored since Foreman 1.0 but never removed until Foreman 1.24.