fix null reference error when determining left offset

https://github.com/iosscripts/iosslider/issues/285