Script error in setOffsetOption() if !offsetParent

`offsetParent.getScroll()` had thrown an error if `!offsetParent`. Because there is already an if condition with return, its moved after that condition.