fixes Cannot call method 'split' of null error
Merge pull request #5 from andrew-luhring/master

fixes "Cannot call method 'split' of null" error