Do not log credentials/reg code (bnc#894670)

I do not get why you check it for array? What are other possible values? is simple nil check not enough?