I've ran into an error on a page containing frames where for some reason document
was being passed in as null. This check fixed the error.
I've ran into an error on a page containing frames where for some reason document
was being passed in as null. This check fixed the error.