fix for AVFoundationVideoPlayer crashing when video is unloaded when it reaches the end.
added extra checks to AVFoundationVideoPlayer to make sure sampleTime is in range.