The Alberta wildfires, which closed many oilsands operations, hindered the country’s important energy exports, which resulted in a record shortfall in the trade of goods.