The Court of Appeal has overturned a High Court decision granting a non-party costs order against an insolvent company's director and majority shareholder.