Avoid IE9 errors when accessing `document.activeElement`

https://github.com/mathiasbynens/jquery-placeholder/pull/99#issuecomment-25535993

Closes #99 and #161.