fixed issue with split for syslog case

I think you expect to have 2 strings, not 1. The current code fails since data is nil in the case of syslog.