Don't allow setting a scrollbar position to nan.

Since nan != nan, the scrollbar would otherwise try to move the view to
the new position, the view would try to set the scrollbar value again,
and so on.
Style fix.