Fix issue 26

Do not cache subscribers.length when publishing topics, as subscribers might change this by subscribing or unsubscribing.