It does sound like you've modified the CMS web.config, Kentico isn't able to insert a new XML element in a specific location because it has been removed.
Like Juraj has said you can probably just take the relevant section from the default web.config (configuration/system.webServer/modules).