Script error in Termbase Viewer default view

In the Termbase Viewer, default view (Studio 2017 SR1), the following sequence causes a script error:

1. A duplicate target term is added to the termbase, which differs from the original term in capitalization

2. A pop-up dialog warns that the term already exists and offers to duplicate or merge the term

3. If the "Merge" button is clicked, an error dialog pops up with the message "An error has occurred in the script in this page". See image below: