fix slice_before on empty enumerable

This fixes an issue where calling slice_before on an empty enumerable
would return an enumerable containing one element of nil
Merge pull request #822 from statianzo/slice_before-fix

fix slice_before on empty enumerable