Fix `fabric.util.getElementOffset` for Firefox