Catch empty arrays.
Fix condition expression in krb5 template

Signed-off-by: Lukas Bednar <lbednar@redhat.com>