BUG: Cluster object with any type of special agent not working in CRE and CEE if core is Nagios

Yesterday i got a really nasty bug.
Following simple setup.

Host (as example Netapp) with configured special agent Netapp.
Now you create a cluster host to split the Netapp nodes. → node1
Create a rule for clustered services, got to the node and you see all services as expected that match your rule. All fine until now.
Activate the changes.

Cluster host and cluster node are shown as expected all with the services.
Check on cluster host is working fine - all data shown.
Check on cluster node is crashing with the following message.

KeyError (netapp)

The longer crash reports shows then the following message.

  File "/omd/sites/core/lib/python3/cmk/base/decorator.py", line 37, in wrapped_check_func
    status, infotexts, long_infotexts, perfdata = check_func(hostname, *args, **kwargs)
  File "/omd/sites/core/lib/python3/cmk/base/checking.py", line 182, in do_check
    nodes = checkers.make_nodes(
  File "/omd/sites/core/lib/python3/cmk/base/checkers/_checkers.py", line 224, in make_nodes
    return _make_piggyback_nodes(mode, config_cache, host_config)
  File "/omd/sites/core/lib/python3/cmk/base/checkers/_checkers.py", line 330, in _make_piggyback_nodes
    sources = make_sources(
  File "/omd/sites/core/lib/python3/cmk/base/checkers/_checkers.py", line 207, in make_sources
    return _Builder(
  File "/omd/sites/core/lib/python3/cmk/base/checkers/_checkers.py", line 63, in __init__
    self._initialize()
  File "/omd/sites/core/lib/python3/cmk/base/checkers/_checkers.py", line 79, in _initialize
    self._initialize_agent_based()
  File "/omd/sites/core/lib/python3/cmk/base/checkers/_checkers.py", line 93, in _initialize_agent_based
    for elem in self._get_special_agents():
  File "/omd/sites/core/lib/python3/cmk/base/checkers/_checkers.py", line 188, in _get_special_agents
    return [
  File "/omd/sites/core/lib/python3/cmk/base/checkers/_checkers.py", line 189, in <listcomp>
    SpecialAgentSource(
  File "/omd/sites/core/lib/python3/cmk/base/checkers/programs.py", line 206, in __init__
    cmdline=SpecialAgentSource._make_cmdline(
  File "/omd/sites/core/lib/python3/cmk/base/checkers/programs.py", line 230, in _make_cmdline
    args = SpecialAgentSource._make_source_args(
  File "/omd/sites/core/lib/python3/cmk/base/checkers/programs.py", line 266, in _make_source_args
    info_func = config.special_agent_info[special_agent_id]

If you test on the command line.

cmk --debug -vv node1

All is running fine without error also the check results are forwarded to the Nagios core.
If i do this test inside a CEE, no problem all is working.