This issue has already been fixed in Candlepin 2.5. This bug is to backport to 2.4.
Closing as deferred as I opened it in error. The 2.5 fix is the one that is desired.