templates/issue: fix apply filter
Apply filter doesn't work because during last refactor I've introduced
bug. Instead of writing results of stats request to global stats
variable I made it so these results are saved to new local stats
variable.
Fixes: do not queue stats requests (5d6c3c03)