Fix node removeAllListeners method definition