Correctly check for undefined in getScroll. Fixes #219

This previously caused problems when `scrollTop` is 0.