Null pointer exception in logging method

Using iOS 8 SDK an exception was being raised while preparing the log data. This is a sanity check on the asl_get() result before passing the value to the NSString class method.