[ticket/636] Fix undefined variable: authed.

CUSTDB-636