fixes #4745 - fixing error on repo discover

This is a temporary fix until we fully integrate foreman roles into katello