Fixed segmentation fault on empty spike trains