[FIX] Honor anon flag on API getblocksfound

Fixes #1407 once merged
Merge pull request #1409 from TheSerapher/issue-1407

[FIX] Honor anon flag on API getblocksfound