Only create indexes which don't exist already in sync. Closes #2162