Fix crash when pulling-to-refresh in a certain way

Closes #20. This solution could be improved, but fixes the crash for
now.