Fix issue #6

https://github.com/nanoko-project/h-ubu/issues/6

To avoid the concurrent modification exception we iterate on a copy of the listener array and check if the listener is still valid.

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>