Nonexistent document sets were going from trying to pass in nulls instead of arrays. Not sure if this was the best solution, but it seems to have fixed it without additional problems.