`el.activeElement` in the following method will be `null` if `el` is a document fragment rather than an element, which throws a runtime error: https://github.com/reactjs/react-modal/blob/a275399059cc37aa02cac7e9385512b02ff5cf15/src/helpers/scopeTab.js#L3-L7