Fix IE8 potentially throwing during restoreSelection
Merge pull request #1774 from syranide/ie8focusthrow

Fix IE8 potentially throwing during restoreSelection