geteventlisteners() return an error when used woth 'window' and 'document'. Is there a way to circumvent that?