Index: src/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js
===================================================================
--- src/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js	(revision 32699)
+++ src/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js	(working copy)
@@ -39,12 +39,12 @@
 
 			rng = editor.selection.getRng();
 			node = rng.startContainer;
-			text = node.nodeValue;
 
-			if ( node.nodeType !== 3 ) {
+			if ( ! node || node.nodeType !== 3 ) {
 				return;
 			}
 
+			text = node.nodeValue;
 			parent = editor.dom.getParent( node, 'p' );
 
 			if ( ! parent ) {
Index: tests/qunit/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js
===================================================================
--- tests/qunit/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js	(revision 32699)
+++ tests/qunit/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js	(working copy)
@@ -1,6 +1,10 @@
 ( function( $, QUnit, tinymce, _type, setTimeout ) {
 	var editor;
 
+	if ( tinymce.Env.ie && tinymce.Env.ie < 9 ) {
+		return;
+	}
+
 	function type() {
 		var args = arguments;
 
