Fixed issue where empty xml was adding None as a rule.