dialog: do not log strings if hidden

Change-Id: Ib62096fe045d82adb828ba6573af4156bd81375f
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>