Fix scrollbar search tickmark bugs

* Fix bug #6118 (Scrollbar search tickmarks duplicated inside inline editors) -- Be careful to use jQuery selectors that won't find additional matches when an inline editor is nested inside the target editor.
* Fix bug (injected at ca11256e) where exceptions are thrown on each window resize.
* More accurate height/offset calculation for the no-scrollbar case.