https://github.com/Katello/katello/pull/4103/files#diff-92284b4e168df1c4ce9653b606f16c33R22 should fix your issue. Thanks for catching it.