Created a common function to handle the unsaved changes resetting in ListBuilder. GCP-9124. Reviewer: Dennis/Darla.