Steps to reproduce;
1.Open a page
2.Open the reference dialog
3.Click on use existing reference or just simply close it
Observed Result:
TypeError: sel.nativeSelection is null aappears in the console
Environment:test 2 and Betalabs
Version: unspecified
Severity: major