Sorry to rain on people parade but I believe I have found a much more simple solution.
Go to the tinymce.js file and replace line 68 window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, tagtext);
with
tinyMCEPopup.editor.execCommand('mceInsertContent', false, tagtext);