Fix syntax error generated when there are no auth users at all.

Ticket: #5191