codeReport: fix crash when no bad functions
Merge branch 'fixCodeReport'