Problem: SelectionResult::Clear() removes the selected inputs but keeps their bump fee discount. GetTotalBumpFees() then subtracts that discount from zero, so any positive discount gives the empty selection a negative fee total. The wallet currently avoids this because it only clears selections inside the knapsack solver, before applying the discount.
Fix: Reset the discount along with the inputs it applies to.