Fixed segfault for listeners with no publishers (issue #81)