Fixes #1409. This makes the template processing not include previously budgeted funds in the return value.