Fix bug when kernel is larger than slab thickness.

This bug could result in incorrect data if an interpolation kernel
was used that had a diameter greater than the thickness of the image
slab (assuming two or more slices).