Fix for `$.fn.offset()` on element inside shadowRoot