To reproduce, go to the URL ([[User:Amire80/ve-invalid-image-keyword]]). Notice that the save button doesn't appear in the toolbar. The JS console shows the following error:
[15:59:08.469] Error: Offset could not be translated to a DOM element and offset: 3
The reason for this is the invalid keyword "no_such_keyword" that I used on the image.
A better behavior would be to show the user some kind of a warning about the wrong keyword, rather than throwing a JS error and crashing.
This bug was discovered by User:Nurick in the Hebrew Wikipedia.
Version: unspecified
Severity: normal
URL: https://en.wikipedia.org/wiki/User:Amire80/ve-invalid-image-keyword?veaction=edit