Fix value set writer for using MongoDB as a Participant IDs store