Ignore exceptions from document.querySelector()