Fix error handling of the mi in list command.