fixed bug in sync app where an empty array of clients would break the request