add converted nil to empty string for adding ruledata
fix accordance with comments
fix again
Merge pull request #19 from ecomcharge/fix-add-rule-data

add converted nil to empty string for adding ruledata