Katello Smart Proxy Upgrade 3.8 Broken

I ran into this same issue while updating my smart proxies to 3.8.0. I resolved it by applying the patch mentioned in #25011.