Client library: fix condition reversal in InitUserAndGroupMode(). Add condition to prevent adding empty user and groups names.