make sure the value is set before adding it to the dictionary fixes ZEN-15135
Merge pull request #552 from zenoss/feature/ZEN-15135

make sure the value is set before adding it to the dictionary fixes ZEN-...