If the toggle button doesn't exist, don't get it's offset

If the element is defined but has no offset, there is nothing to measure and breaks the JS. This checks to make sure an offset exists.