Rather than throwing it would return null. This allows somewhat cleaner code. See https://github.com/jsdom/jsdom/pull/2146 for rationale.