Fix problems with TargetRule in Magento Enterprise <= 1.12