FIX: document.activeElement can be null on IE11 (PR #9880)

GitHub