The city abruptly canceled the carnival three days after it opened last May out of security concerns, leaving the company that produced it in a difficult situation.