Guard against undefined in IE11

PR here: https://github.com/cure53/DOMPurify/pull/33/files