Fix bug when a channel is empty.
Merge pull request #183 from samuelgarcia/spike2io_bug_182

This close the issue #182