Add ability to query threads that are not associated with any group_id

@aboudreault Ok, if they do it like this everywhere we should be good - thanks for the confirmation.