Fixed splitting on nil error.
Merge pull request #2933 from danielpclark/master

Fixed splitting on nil error.