Fix slicing result set

Other option would be to delete the whole condition. Does not seem to make a difference if you have a greater value than elements in the offsetEnd.
Merge pull request #3 from meistermeier/patch-1

Fix slicing result set