removeAllListeners: check if listeners exist for a given type before trying to remove them
Merge pull request #14 from rudasn/bug/removeAllListeners-if-empty

removeAllListeners: check if listeners exist for a given type before trying to remove them