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

I wanted it to be more safe, but you are right, only `Array` value is expected there, simple `nil` check is enough.