Prevent crashing when bounce enabled

When scrolling past the beginning/end (with bounce enabled) the app would crash.