The only negative number you should be seeing on the final return on Line 23 should be as result of the trust's exemption.
If there is a net loss somewhere (such as an NOL), that should have been distributed to the beneficiaries on their K-1s and should not appear on Line 23, assuming a correct distribution was made.