Bug 23846: Add a check to the data inconsistencies script