Test that there is no crash when surroundContents is called with a node preceding the current selection.