CDB-3559 Checking current_user is defined