Adding short-circuits for the emit and emitSync methods if there are no listeners present.