Fixed issue with adding the same listener to an event twice, if it was the only listener.

Signed-off-by: Grant Skinner <info@gskinner.com>