Fix multi-month budget report
The aggregation of budgets for multiple months (e.g. for quarterly reports) did not work correctly.
This change fixes the problem.
BUG: 393752 FIXED-IN: 5.0.5