[NGRINDER-694] Fix Klocwork defects.