EDT-543 Double-clicking image and editing properties re-inserts link

https://youtrack.mindtouch.us/issue/EDT-543