MDL-46112 group: When filterting users, if we are passed an empty list simply return the empty list.  This fixes an SQL error later on.