Fix crash that can occur if CLI registration fails for an aliased command.