Steps to reproduce:
- Create an external link.
- Click on Edit again.
- Click the button "Add label".
- Once the label gets added, reopen the link inspector again.
- Change the external link.
- Click on "Publish Changes".
- Switch from visual diff to wikitext diff.
Observe that, there is an error in the console: Uncaught TypeError: Cannot read property 'top' of null