Index: _source/plugins/selection/plugin.js
===================================================================
--- _source/plugins/selection/plugin.js	(revision 5546)
+++ _source/plugins/selection/plugin.js	(working copy)
@@ -235,7 +235,7 @@
 
 								// Avoid saving selection from within text input. (#5747)
 								var parentTag;
-								if ( nativeSel.type == 'Text'
+								if ( nativeSel && nativeSel.type == 'Text'
 									&& ( parentTag = nativeSel.createRange().parentElement().nodeName.toLowerCase() )
 									&& parentTag in { input: 1, textarea : 1 } )
 								{
