Uncollected dividend tax liability is part of taxable profits, court rules