Fixes WFE-907, detect duplicate folder and folder entries.