Check to make sure the currentSection isn't undefined.

I'm not sure if this PR is even merge-able, but I'm getting an exception when currentSection is undefined in my application. If I scroll all the way up then scrolledSections is an empty list.

Just thought I'd let you know. Thanks!