Fix NPE in CommandHandler when setting cooldowns for triggers.