Update slices to truncate instead of returning null
Merge pull request #1433 from systay/out-of-bounds-slices

Update slices to truncate instead of returning null