Fix for some tests failing - clicking inside any element with shadowDom (incl. <html>) was not treated as outside click