[fix][#33850] Config can't be passed into JApplicationCms. Fixes #3758

Check we have a config option

Remove check for $config

Merge in the API config