Script error in setOffsetOption() if !offsetParent

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