ZEN-14048: add check for dict before checking has_key()
Merge pull request #44 from zenoss/feature/ZEN-14048

ZEN-14048: add check for dict before checking has_key()