Re-introduce method to avoid crash reports from Emmet plug-in
Insert at caret for exit_insert_snippet when input is document

Previously we would insert “after input” which I don’t think is desired (when input is entire document).
Use arc4random_uniform (in tests) to avoid modulus bias
Update dialog plug-in (dispose nib after its window is closed)