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