CSPACE-5943: Prevent duplicate document IDs.