Fixed bug that caused "scroll-to-top" animation to create endless loop.

https://github.com/cferdinandi/smooth-scroll/issues/24