LPS-33785 Check for duplicates before updating title because otherwise it will always fail