Steps to reproduce:
1.Open a page with VE
2.Now select an image or a reference note in the Page
3.Now Open the Gallery from Insert>Gallery
Observed Result:
It deletes the image and the reference note.
Test Environment: http://en.wikipedia.beta.wmflabs.org/
Browser: Chrome Version 26.0.1410.65
OS: MAC OS X 10. 8. 5
Version: unspecified
Severity: normal