 # Helper publish function to get users for experiments that have ended.
 # Necessary to watch completed experiments.
 Meteor.publish "tsGroupUsers", (groupId) ->
-  return null unless isAdmin(@userId)
+  return [] unless isAdmin(@userId)
   sub = this
   exp = Experiments.findOne(groupId)
   return unless exp

# Admin users - needs to update if group updates
# Return all experiments unless in a group
Meteor.publish "tsAdminState", (groupId) ->
  return null unless isAdmin(@userId)

  cursors = [ Meteor.users.find({}, userFindOptions) ]


  sub.onStop -> subHandle.stop()

Meteor.publish "tsGroupLogs", (groupId, limit) ->
  return [] unless isAdmin(@userId)

  return Logs.find({_groupId: groupId}, {
      sort: {_timestamp: -1},
