Better return guard for the page visibility polyfill.